<?php

/**
 * Inflect view helper
 *
 * @author    Mon Zafra <monzee at gmail>
 * @copyright (c)2009 Mon Zafra
 * @license   http://monzee.wordpress.com/license New BSD
 * @version   $Id: Inflect.php 38 2009-02-18 17:12:39Z monzee $
 */
class Crud_Inflect
{
    static protected $_inflector;

    /**
     *
     * @return Mz_Inflector
     */
    public function inflect()
    {
        if (null === self::$_inflector) {
            self::$_inflector = new Mz_Inflector();
        }
        $inflector = self::$_inflector;
        $args = func_get_args();

        return call_user_func_array(array($inflector, 'invoke'), $args);
    }

}
